package com.hnust.fiveonesix.Controller.SendMessController;

import com.hnust.fiveonesix.Mapper.SenMessMapper.SendmessMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class SendMessController {
    @Autowired
    private SendmessMapper sendmessMapper;
    @RequestMapping("/sendMess")
    public String sendmess(@RequestParam("姓名") String name,
                           @RequestParam("电话") String tel,
                           @RequestParam("起因") String show,
                           @RequestParam("反馈信息") String mess){
        sendmessMapper.sendmess(name,tel,show,mess);
        return "forward:/反馈信息/sendMess.html";
    }

}
